package com.cencat.merchant;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 商户管理服务启动类
 * 
 * @author cencat
 * @version 1.0
 * @since 2024-12-19
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableTransactionManagement
@MapperScan("com.cencat.merchant.mapper")
public class MerchantApplication {

    public static void main(String[] args) {
        SpringApplication.run(MerchantApplication.class, args);
        System.out.println("");
        System.out.println("   ____                      _     __  __               _                 _   ");
        System.out.println("  / ___|___ _ __   ___ __ _| |_  |  \\/  | ___ _ __ ___| |__   __ _ _ __ | |_ ");
        System.out.println(" | |   / _ \\ '_ \\ / __/ _` | __| | |\\/| |/ _ \\ '__/ __| '_ \\ / _` | '_ \\| __|");
        System.out.println(" | |__|  __/ | | | (_| (_| | |_  | |  | |  __/ | | (__| | | | (_| | | | | |_ ");
        System.out.println("  \\____\\___|_| |_|\\___\\__,_|\\__| |_|  |_|\\___|_|  \\___|_| |_|\\__,_|_| |_|\\__|");
        System.out.println("");
        System.out.println("商户管理服务启动成功！");
        System.out.println("接口文档地址: http://localhost:8085/doc.html");
        System.out.println("");
    }

}